<?php
// Application middleware

// e.g: $app->add(new \Slim\Csrf\Guard);
$checkProxyHeaders = true;
$trustedProxies = ['127.0.0.1', '127.0.0.1'];
$app->add(new RKA\Middleware\IpAddress($checkProxyHeaders, $trustedProxies));
$app->get('/', function ($request, $response, $args) {
    $ipAddress = $request->getAttribute('ip_address');

    print_r($ipAddress);
    return $response;
});